<% @departments.each do |department| %>
  <li class="branch_li">
    <div class="branch_name" data-id="<%= department.id %>">
      <i title="收起" class="fa fa-folder-open"></i>
      <i title="展开" class="fa fa-folder"></i>
      <span class="name js-change-department-span-to-input" title="双击修改"> <%= department.name %></span>
      <input type="text" name="name" class="" value="<%= department.name %>" autocomplete="off">
      <i title="显示详情" class="fa fa-list js-to-show-positions"></i>
      <i title="删除" class="fa fa-times js-to-remove-department"></i>
      <i title="保存" class="fa fa-save js_update_department"></i>
      <i title="取消" class="fa fa-undo js-cancel-to-update-department"></i>
    </div>
  </li>
<% end %>
